function editee(id,cke,seed){
	cke.setData('')
	h = $('div#letext_'+id+'_'+seed+' > .content').height();
	$('div#letext_'+id+'_'+seed).fadeOut(200, function(){ cke.resize('100%',h);  $('div#letextadm_'+id+'_'+seed).fadeIn(200); });
	getTextForCKEee(id,cke);	
}

function getTextForCKEee(ide,cke){
	$.ajax({
	type: "POST",
	url: "./controllers/gettextee.php",
	data: { id: ide}
	}).done(function(msg){cke.setData(msg)});
}

function updateee(id, cke, seed){
	updateContent(id,cke);
	$('div#letextadm_'+id+'_'+seed).fadeOut(200, function(){$('div#letext_'+id+'_'+seed).fadeIn(200);});
	$('div.fe_content_'+id+' div.content').html(cke.getData());
}

function updateContent(ide, cke){
	$.ajax({
	type: "POST",
	url: "./controllers/updatetextee.php",
	data: { id: ide, text: cke.getData()}
	});
}

function cancelee(id, cke, seed){
	$('div#letextadm_'+id+'_'+seed).fadeOut(200, function(){$('div#letext_'+id+'_'+seed).fadeIn(200);});
}